#pragma once

#include "afxstr.h"
#include "stdint.h"

#define DK_DEBUG

#ifdef DK_DEBUG
#include "MyUIDlg.h"
extern CMyUIDlg* kMainDlg;
//#define dk_log_fun		kMainDlg->Log
#else
#define dk_log_fun()
#endif

class DKLog {
public:
    DKLog();
    ~DKLog();
    static void dk_log_ln(CString str, ...);
    static void dk_log_hex(CString str, uint8_t *data, uint32_t len);
};

